package exercise;

import framework.Product;

public class IDCard implements Product {

    private String owner;
    private int serial;

    public IDCard(String owner, int serial){
        System.out.println("创建" + owner + "(" + serial + ")" + " 的 ID Card");
        this.owner = owner;
        this.serial = serial;
    }

    public void use() {
        System.out.println("使用" + owner + "(" + serial + ")" + " 的 ID Card");
    }

    public String getOwner() {
        return owner;
    }

    public int getSerial() {
        return serial;
    }
}
